import React from "react";
import ReactDOM from "react-dom";
import {Provider} from 'react-redux';
import store from './store/index';

import {Router,Route,hashHistory,IndexRoute} from 'react-router';

import App from './modules/App';
import News from './modules/News';
import Home from './modules/Home';
import Comment from './modules/Comment';
import Spcar from './modules/Spcar';
import Footer from './modules/Footer';

ReactDOM.render(
    <Provider store={store}>
        <Router history={hashHistory}>
            <Route path='/' component={App}>
                <IndexRoute component={Home}/>
                <Route path='/news' component={News}></Route>
                <Route path='/spcar' component={Spcar}></Route>
                <Route path='/comment/:indexl' component={Comment}></Route>
            </Route>
        </Router>
    </Provider>,document.getElementById('app')
)


